package com.example.hao.animation_demo;

import android.os.PersistableBundle;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class View1Activity extends AppCompatActivity {

    private ImageView iv_top;
    private ImageView iv_battery;
    private View iv_arrows;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view1);

        initView();
    }

    private void initView() {
        iv_top = findViewById(R.id.iv_top);
        MyAnimationUtils.method(this, R.anim.anim_scale, iv_top);

        iv_battery = findViewById(R.id.bettery);
        MyAnimationUtils.method(this, R.anim.anim_rotate, iv_battery);

        iv_arrows = findViewById(R.id.janTou);
        MyAnimationUtils.method(this, R.anim.anim_translate, iv_arrows);
    }


    @Override
    public void onSaveInstanceState(Bundle outState, PersistableBundle outPersistentState) {
        super.onSaveInstanceState(outState, outPersistentState);
    }

    @Override
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
        super.onRestoreInstanceState(savedInstanceState);
    }
}

